package main

import "net"
import "fmt"
import "bufio"
import "time"
//import "os"

func main() {
    for i := 0; i < 100; i++ {
		go func() {
			t := time.Now()
			conn, _ := net.Dial("tcp", "localhost:12345")
			fmt.Fprintf(conn, "*j+aJASD0ASs$%@&34(*)SDdu))(395T23^fASDYj43s5a4s8w")
		    // listen for reply
			b := make([]byte, 53)
		    n, _ := bufio.NewReader(conn).Read(b)
			s := time.Since(t)
		    fmt.Println(b[:n], s)
		}()
    }
}